#include "BuddyChangedEvent.h"

namespace Impp
{

DEFINE_EVENT_TYPE(EVT_BUDDY_CHANGED) 

BuddyChangedEvent::BuddyChangedEvent(Buddy* buddy, BuddyChangedEventType changeType, wxEventType eventType, int id) :
	wxNotifyEvent(eventType,id),
	buddy(buddy),
	changeType(changeType),
	oldGroup(NULL),
	newGroup(NULL)
{
}

BuddyChangedEvent::~BuddyChangedEvent()
{
}

Buddy* BuddyChangedEvent::getBuddy(){
	return buddy;
}

Group* BuddyChangedEvent::getOldGroup(){
	return oldGroup;
}
Group* BuddyChangedEvent::getNewGroup(){
	return newGroup;
}
wxString BuddyChangedEvent::getOldCustomName(){
	return oldCustomName;
}
wxString BuddyChangedEvent::getNewCustomName(){
	return newCustomName;
}

void BuddyChangedEvent::setOldGroup(Group* group){
	this->oldGroup=group;
}

void BuddyChangedEvent::setNewGroup(Group* group){
	this->newGroup=group;
}

void BuddyChangedEvent::setOldCustomName(const wxString & oldCustomName){
	this->oldCustomName=oldCustomName;
}

void BuddyChangedEvent::setNewCustomName(const wxString & newCustomName){
	this->newCustomName=newCustomName;
}

wxEvent* BuddyChangedEvent::Clone() const {
	return new BuddyChangedEvent(*this);
}

BuddyChangedEventType BuddyChangedEvent::getChangeType(){
	return changeType;
}


}
